FROM 172.17.14.224/library/openjdk-8u212-alpine-mkh:1.0

MAINTAINER xuhuixu@hailiang.com

#ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

#RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

#RUN mkdir -p /st-register

WORKDIR /app

EXPOSE 8848

ADD ./target/st-register.jar ./

CMD sleep 30;java $JAVA_OPTS -jar st-register.jar